<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
	<title><block name="title">{:C('web_index_title')}</block></title>
    <meta name="keywords" content="<block name="keywords">{:C('web_index_keywords')}</block>" />
    <meta name="description" content="<block name="description">{:C('web_index_description')}</block>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link rel="stylesheet" href="/Style/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="/Style/bootstrap/css/bootstrap-theme.min.css">
	<script src="/Style/bootstrap/js/jquery.min.js"></script>
	<script src="/Style/bootstrap/js/bootstrap.min.js"></script>
	<if condition="$alert">{$alert}</if>
	<link rel="stylesheet" href="/Style/css/default.css?3">
	<script src="/Style/js/default.js"></script>
	<block name="head"></block>
</head>
<body>
<block name="body">
<div class="mznav">
	<nav class="navbar">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#primary-navbar" style="margin-top: 20px;"><span class="sr-only">{:C('web_name')}</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
			<p class="navbar-brand">
				<a href="/" class="navbar-logo">{:C('web_name')}</a>
			</p>
		</div>
		<div class="collapse navbar-collapse" id="primary-navbar">
			<ul class="nav navbar-nav navbar-right navbar-lean">
				<li><a href="{:U('user')}" <if condition="ACTION_NAME eq 'user'">class="nav-active"</if>><span class="glyphicon glyphicon-user" aria-hidden="true">&nbsp;</span>用户中心</a></li>
				<li><a href="{:U('add')}" <if condition="ACTION_NAME eq 'add'">class="nav-active"</if>><span class="glyphicon glyphicon-plus" aria-hidden="true">&nbsp;</span>添加挂机</a></li>
				<li><a href="{:U('shop')}" <if condition="ACTION_NAME eq 'shop'">class="nav-active"</if>><span class="glyphicon glyphicon-shopping-cart" aria-hidden="true">&nbsp;</span>自助开通</a></li>
				<if condition="$user['daili']"><li><a href="{:U('daili/index')}"><span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;</span>代理后台</a></li></if>
				<li><a href="{:U('logout')}"><span class="glyphicon glyphicon-log-out" aria-hidden="true">&nbsp;</span>退出</a></li>
			</ul>
		</div>
	</div>
	</nav>
</div>
<div class="page-container">
	<div class="left-menu hidden-xs">
		<div class="left_container">
			<div class="list-group">
				<div class="list-group-item list-group-item-info">我的信息<a href="#"><span class="glyphicon glyphicon-edit" aria-hidden="true" style="float:right;"></span></a></div>
				<div class="list-group-item">
					<span class="badge">UID:{$user.uid}</span>
					<span class="glyphicon glyphicon-user" aria-hidden="true">&nbsp;{$user.user}</span>
				</div>
				<div class="list-group-item list-group-item-warning">
					<span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;代理：<if condition="$user['daili']"><a href="{:U('daili/index')}">普通代理</a><else/>不是代理</if></span>
				</div>
				<div class="list-group-item">
					<span class="badge">充值</span>
					<span class="glyphicon glyphicon-yen" aria-hidden="true">&nbsp;<font color="red" size="3">{$user.rmb}</font>&nbsp;元</span>
				</div>
				<div class="list-group-item">
					<a href="" class="badge">兑换</a>
					<span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;积分：<font color="green" size="3">{$user.jf}</font></span>
				</div>
				<div class="list-group-item">
					<a href="{:U('shop')}" class="badge">购买</a>
					<span class="glyphicon glyphicon-hourglass" aria-hidden="true">&nbsp;{:get_isvip($user['vip'],$user['vipend'],'No VIP')}</span>
				</div>
				<div class="list-group-item">
					<a href="{:U('shop')}" class="badge">增加</a>
					<span class="glyphicon glyphicon-th" aria-hidden="true">&nbsp;配额：{:get_count('qqs',"uid='$user[uid]'",'qid')}/<font color="green" size="3">{$user.peie}</font></span>
				</div>
			</div>
			<div class="list-group">
				<div class="list-group-item list-group-item-info">挂机列表<a href="#"><span class="glyphicon glyphicon-plus" aria-hidden="true" style="float:right;"></span></a></div>
				<?php if($qqlist=M('qqs')->field(array('*'))->where("uid='".$user['uid']."'")->select()){ $data="";foreach($qqlist as $row){ if($row['sidzt'] || $row['skeyzt']){ $class="glyphicon-remove-circle red";}else{ $class="glyphicon-ok-circle green";}$data.='<a href="'.U('qq','qid='.$row['qid']).'" class="list-group-item"><span class="glyphicon '.$class.'" aria-hidden="true">&nbsp;'.$row['qq'].'</span></a>';}echo $data;}else{ echo'<div class="list-group-item"><a href="'.U('add').'" class="badge">添加</a><span class="glyphicon glyphicon-remove" aria-hidden="true">&nbsp;你还没有添加</span></div>';}?>
			</div>
			<if condition="ACTION_NAME eq 'qq' or ACTION_NAME eq 'qqset'">
			<div class="list-group">
				<div class="list-group-item list-group-item-info">{$qqrow.qq}功能配置</div>
				<div class="list-group-item">
					<a href="{:U('qqset','qid='.$_GET['qid'].'&xz=zan')}" class="badge">{:get_xz($qqrow['iszan'])}</a>
					<span class="glyphicon <if condition="$qqrow['iszan'] gt 0">glyphicon-ok-circle green<else/>glyphicon-remove-circle red</if>" aria-hidden="true">&nbsp;说说秒赞</span>
				</div>
				<div class="list-group-item">
					<a href="{:U('qqset','qid='.$_GET['qid'].'&xz=reply')}" class="badge">{:get_xz($qqrow['isreply'])}</a>
					<span class="glyphicon <if condition="$qqrow['isreply'] gt 0">glyphicon-ok-circle green<else/>glyphicon-remove-circle red</if>" aria-hidden="true">&nbsp;说说秒评</span>
				</div>
				<div class="list-group-item">
					<a href="{:U('qqset','qid='.$_GET['qid'].'&xz=zf')}" class="badge">{:get_xz($qqrow['iszf'])}</a>
					<span class="glyphicon <if condition="$qqrow['iszf'] gt 0">glyphicon-ok-circle green<else/>glyphicon-remove-circle red</if>" aria-hidden="true">&nbsp;说说转发</span>
				</div>
				<div class="list-group-item">
					<a href="{:U('qqset','qid='.$_GET['qid'].'&xz=shuo')}" class="badge">{:get_xz($qqrow['isshuo'])}</a>
					<span class="glyphicon <if condition="$qqrow['isshuo'] gt 0">glyphicon-ok-circle green<else/>glyphicon-remove-circle red</if>" aria-hidden="true">&nbsp;自动说说</span>
				</div>
				<div class="list-group-item">
					<a href="{:U('qqset','qid='.$_GET['qid'].'&xz=qd')}" class="badge">{:get_xz($qqrow['isqd'])}</a>
					<span class="glyphicon <if condition="$qqrow['isqd'] gt 0">glyphicon-ok-circle green<else/>glyphicon-remove-circle red</if>" aria-hidden="true">&nbsp;空间签到</span>
				</div>
				
			</div>
			</if>
		</div>
	</div>
	<div class="main-content">
		<block name="page"></block>
	</div>
</div>
</block>
</body>
</html>